using System.Linq;
using Lucene.Net.Analysis;

namespace NopSolutions.NopCommerce.LuceneHelper
{
    public class Globals
    {
        public const string PRODUCT_INDEX = "~/App_Data/products/";
        public const string SPEC_OPTION_INDEX = "~/App_Data/specificationOptions/";
        public const string SPEC_ATTRIBUTE_INDEX = "~/App_Data/specificationAttributes/";
        public const string CATEGORY_INDEX = "~/App_Data/categories/";

        public const string SORTBY_RELEVANCE = "relevance";
        public const string SORTBY_HIGHEST_RATED = "highest-rated";
        public const string SORTBY_BEST_SELLING = "best-selling";
        public const string SORTBY_PRICE_LOW_TO_HIGH = "price-asc";
        public const string SORTBY_PRICE_HIGH_TO_LOW = "price-desc";
        public const string SORTBY_BRAND_AZ = "brand-az";
        public const string SORTBY_BRAIN_ZA = "brand-za";

        public const int INDEX_READER_MAX = 30000;

        public static string[] StopWords()
        {
            return StopAnalyzer.ENGLISH_STOP_WORDS_SET.Values.Cast<string>().ToArray();
        }
    }

}

